<?php

namespace App\HttpController\Api\V1;

use App\HttpService\Api\V1\UserService;

class User extends Version
{
    public function login(){
        $service = new UserService();
        $this->returnJson($service->login());
    }

    public function testValidate(){
        $service = new UserService();
        $this->returnJson($service->testValidate());
    }

    public function testModel(){
        $service = new UserService();
        // $service->testModel();
        // $this->returnJson($service->testModel());
        $this->returnJson($this->params);
    }

    public function addUser(){
        $service = new UserService();
        $result = $service->addUsers($this->params);
        $this->returnJson($result);
    }

    public function testConst(){
        $this->dump(test());
    }


}
